﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Wolfy.NetDisk.Core.Service;
using Wolfy.NetDisk.Infrastructure;
using Wolfy.NetDisk.Service;

namespace Wolfy.NetDisk.Site.App_Start
{
    public class WindsorConfig
    {
        public static void Configure()
        {
            WindsorRegister.Register(typeof(IImageManagerService), typeof(ImageManagerService));
            WindsorRegister.Register(typeof(IUserService), typeof(UserService));
            WindsorRegister.Register(typeof(IDepartmentService), typeof(DepartmentService));
            WindsorRegister.Register(typeof(IRoleService), typeof(RoleService));
            WindsorRegister.Register(typeof(ILogService), typeof(LogService));
            WindsorRegister.Register(typeof(IIconService), typeof(IconService));
            WindsorRegister.Register(typeof(INavigationService), typeof(NavigationService));
            WindsorRegister.Register(typeof(IFolderService), typeof(FolderService));
            WindsorRegister.Register(typeof(IFileService), typeof(FileService));
            WindsorRegister.RegisterAllFromAssemblies("Wolfy.NetDisk.Data");
            WindsorRegister.RegisterAllFromAssemblies("Wolfy.NetDisk.Service");
            WindsorRegister.RegisterAllFromAssemblies("Wolfy.NetDisk.Site");
        }
    }
}